package org.jeecg.modules.innerApi.common.responseDto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


/**
 * @Description: 销项发票查询返回数据
 * @Author: jeecg-boot
 * @Date:   2023-08-18
 * @Version: V1.0
 */
@Data
@ApiModel(description="销项发票查询返回数据")
public class InvoiceQueryRtn extends CommonRtn{

	/**数据列表*/
	@ApiModelProperty(value = "数据列表")
	private List<InvoiceQueryRtnData> data ;

	/**数据合计*/
	@ApiModelProperty(value = "数据合计")
	private InvoiceQueryRtnDataPrice dataPrice;
	/**数据结果*/
	@ApiModelProperty(value = "数据总条数")
	private int total;

	@Data
	@ApiModel(description="销项发票查询返回数据")
	public static class InvoiceQueryRtnData {
		/**发票ID*/
		@ApiModelProperty(value = "发票ID")
		private String id;
		/**发票类型代码*/
		@ApiModelProperty(value = "发票类型代码")
		private String fplxdm;
		/**发票代码*/
		@ApiModelProperty(value = "发票代码")
		private String fpdm;
		/**发票号码*/
		@ApiModelProperty(value = "发票号码")
		private String fphm;
		/**税控码*/
		@ApiModelProperty(value = "税控码")
		private String skm;
		/**校验码*/
		@ApiModelProperty(value = "校验码")
		private String jym;
		/**二维码*/
		@ApiModelProperty(value = "二维码")
		private String ewm;
		/**开票日期*/
		@ApiModelProperty(value = "开票日期")
		private Date kprq;
	}

	@Data
	@ApiModel(description="销项发票查询返回合计数据")
	public static class InvoiceQueryRtnDataPrice {
		/**合计金额*/
		@ApiModelProperty(value = "合计金额")
		private BigDecimal hjje;

		/**合计税额*/
		@ApiModelProperty(value = "合计税额")
		private BigDecimal hjse;
		/**价税合计*/
		@ApiModelProperty(value = "价税合计")
		private BigDecimal jshj;
	}
}
